Repository navigation
ci: the lint runs in twelve shards; libs/crypto's allocation control survives -O3 - #28
Merged
Merged
Conversation
added 2 commits
November 17, 2026 09:39
On main's runs 43883027557 and 43991796754 the 60-minute limit cancelled Lint (5/8), then Lint (2/8). Measured over the eight shards of six runs (48 jobs), every shard spends 12 to 15 minutes writing the same compilation database and 17 to 25 analysing its slice on most runners: the slices weigh alike, each 1.2 to 1.7 times its own runner's database, so weighting them would gain little. About one runner in eight runs at half that speed, the database in 26 minutes; its shard took 67 to 72 minutes (runs 44011268560, 44060501712), past 60 and close to the 90 main now allows. Twelve shards cut the slice by a third: such a runner's shard takes about 57 minutes, leaving a third of the 90 spare.
Records webcpporg/crypto's fix/release-allocation-control, whose control calls ::operator new instead of a new-expression that -O3 elided on wasip2 and wasip3, failing secp256k1_allocation and its no-exceptions twin at variant=release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lint shards
On main's runs 43883027557 and 43991796754 the 60-minute limit cancelled Lint (5/8), then Lint (2/8). I measured the eight shards of six runs (48 jobs), with each job's log cut at the lint's own markers:
The fix is twelve shards instead of eight, which cuts each slice by a third. A slow runner's shard should then take about 57 minutes and the others 30-40, so the 90-minute limit keeps about a third spare. The comment in
library.ymlstates the numbers. Running the database on four more jobs costs about 11% more lint runner-minutes, and the lint finishes sooner. AGENTS.md and doc/releases/0.1.0.adoc are updated.A possible follow-up is to write the database once, in a job of its own, and pass it with its generated inputs to the shards. That would remove the fixed cost from every shard. It is not attempted here.
libs/crypto
This records webcpporg/crypto#2 (ae937e5).
secp256k1_allocation's control useddelete new int(1), and -O3 removed that allocation on wasip2 and wasip3, so the release lanes failed. The control now calls::operator newdirectly, which the compiler may not remove.Local verification (macOS arm64)
tools/lint/lint.shover the whole tree:clang-tidy is clean (1037 translation units),lint: clean.tools/ci/matrix_test.py: ok.tools/ci/actions_test.py: ok. actionlint: clean.secp256k1_allocationandsecp256k1_allocation_no_exceptionswith-a: they failed on wasip2 release before the change, and after it both pass on native, wasip2, wasip3 and emscripten, at release and at debug.🤖 Generated with Claude Code